package com.yutian.springbootwebflux.exception;

import org.springframework.http.HttpStatus;

/**
 * @author zhoulei7
 * @create 2020-10-09
 **/
public class CustomException extends RuntimeException {

    private int code = HttpStatus.INTERNAL_SERVER_ERROR.value();

    public CustomException(String message) {
        super(message);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
